//
//  CheckElectircChargeInfoRequest.m
//  EasyToo
//
//  Created by YuanDee on 13-9-14.
//
//

#import "CheckElectricChargeInfoRequest.h"

@implementation CheckElectricChargeInfoRequest
-(id)initWithUserAccount:(NSString *)account Delegate:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if(self)
    {
        self.requestName = @"CheckElectricChargeInfoRequest";
        self.clientId = account;
        self.delegate = delegate;
        
        
        [self.headerJsonDict setObject:@"007001" forKey:@"TranCode"];
        NSMutableDictionary *entry_dict2 = [[[NSMutableDictionary alloc] init] autorelease];
        [entry_dict2 setObject:self.clientId forKey:@"ClientID"];
        [entry_dict2 setObject:@"999999" forKey:@"QueryType"];
        [self.bodyJsonDict setObject:entry_dict2 forKey:@"ReqData"];
        
        [self.bodyJsonDict setObject:@"4601" forKey:@"ReqCode"];
        [self.bodyJsonDict setObject:@"007001" forKey:@"TranCode"];
        [self.bodyJsonDict setObject:@"36194472" forKey:@"TerminalNo"];
        [self.bodyJsonDict setObject:@"TGZYZT001" forKey:@"ContactNo"];
        [self.bodyJsonDict setObject:@"21218cca77804d2ba1922c33e0151105" forKey:@"password"];
        
        [self buildJsonRequest];
    }
    return self;
}

-(void)dealloc
{
    self.clientId = nil;
    [super dealloc];
}
@end
